package net.hn.hnms.biz.plan.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 班次信息
 *
 * @author ly
 * @since 1.0.0 2022-08-16
 */
@Data
@ApiModel("班次信息")
public class DimShiftVO extends BaseVO {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "id")
    private String shiftId;

    /**
     * 矿编码
     */
    @ApiModelProperty(value = "煤矿编号")
    private String mineCode;

    /**
     * 班次名称
     */
    @ApiModelProperty(value = "班次名称")
    private String shiftName;

    /**
     * 开始时间
     */
    @NotNull(message = "请选择开始时间")
    @JsonFormat(
            pattern = "HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "开始时间")
    private java.util.Date shiftStartTime;

    /**
     * 结束时间
     */
    @NotNull(message = "请选择结束时间")
    @JsonFormat(
            pattern = "HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "结束时间")
    private Date shiftEndTime;

}
